﻿namespace EFS.Common.Config.Components.Elements
{
	/// <summary>
	/// Configuration element
	/// </summary>
	public class Element : System.Configuration.ConfigurationElement
	{
		/// <summary>
		/// Constructor
		/// </summary>
		public Element()
		{
		}

		/// <summary>
		/// element tye
		/// </summary>
		public virtual System.String Type { get { return "Plain"; } }

		/// <summary>
		/// Returns the name.
		/// </summary>
		[System.Configuration.ConfigurationProperty("name", IsRequired = true)]
		public virtual System.String Name
		{
			get
			{
				return this["name"] as System.String;
			}
			set 
			{
				this["name"] = value;
			}
		}

		/// <summary>
		/// Returns the setting value
		/// </summary>
		[System.Configuration.ConfigurationProperty("value", IsRequired = true)]
		public virtual System.String Value
		{
			get
			{
				return this["value"] as System.String;
			}
			set
			{
				this["value"] = value;
			}
		}
	}
}
